var app = getApp();
var $ = app.globalData;
Page({
  data: {
    tabs: ["我的上级", "我的下一级", "我的下二级"],
    activeIndex: 1
  },
  bindChange: function (e) {
    this.setData({
      activeIndex: e.currentTarget.id
    });
  },
  onLoad(){
	  wx.request({
	  	url:$.AdminUrl+"/YApi/getMyTeam",
		data:{
			customerid:wx.getStorageSync('userinfo').id
		},
		success: (res) => {
			var that = this
			that.setData({
				LowerList:res.data.obj
			})
		}
	  })
  },
	// 分享转发
		onShareAppMessage: function() {
			var userinfo = wx.getStorageSync('userinfo')
			return {
				title: '优悦购生活管家',
				path: '/pages/index/index?userid='+userinfo.loginname,
				success: (res) => {
					console.log("转发成功", res);
				},
				fail: (res) => {
					console.log("转发失败", res);
				}
			}
		}
});